﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="MyVerify.aspx.cs" Inherits="MyVerify" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>我申请的工作认证</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <div runat="server" id="DVNoData" visible="false" style="text-align: center">
        <img src="Images/nothing.png" />
        <div id="DVTips" runat="server">
            <h2>暂时没有工作认证申请</h2>
        </div>
    </div>
    <center>
        <asp:GridView ID="gvMyVerify" runat="server" AutoGenerateColumns="False" DataSourceID="DSMyVerify"
            OnRowDataBound="gvMyVerify_RowDataBound" CellPadding="4" ForeColor="#333333"
            GridLines="None">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="No" HeaderText="No" SortExpression="No"/>
                <asp:BoundField DataField="Item" HeaderText="项目" SortExpression="Item" ItemStyle-Width="330px" ItemStyle-Wrap="true"/>
                <asp:CheckBoxField DataField="CThisJob" HeaderText="已认证" SortExpression="CThisJob" />
                <asp:BoundField DataField="EmpName" HeaderText="认证人" SortExpression="EmpName" />
                <asp:BoundField DataField="CDate" HeaderText="认证日期" SortExpression="CDate" DataFormatString="{0:d}" ItemStyle-Width="80px"/>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Button ID="btnCancel" runat="server" CausesValidation="false" Text="取消" OnClick="btnCancel_Click">
                        </asp:Button>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
    </center>
    <asp:AccessDataSource ID="DSMyVerify" runat="server" 
        DataFile="~/App_Data/RiskManage.mdb" 
        SelectCommand="SELECT DISTINCT ViewLog.[No], DataList.Item, ViewLog.CThisJob, UserList.EmpName, ViewLog.CDate FROM ((DataList INNER JOIN ViewLog ON ViewLog.DataNo = DataList.[No]) LEFT OUTER JOIN UserList ON UserList.EmpID = ViewLog.CEmpID) WHERE (ViewLog.NeedConfirm = true AND ViewLog.EmpID = ?)">
        <SelectParameters>
            <asp:SessionParameter Name="ViewLog.EmpID" SessionField="EmpID" Type="String"/>
        </SelectParameters>
    </asp:AccessDataSource>
</asp:Content>

